package com.lktx.sso.admin.mapper;

import cn.hserver.plugin.mybatis.flex.annotation.Mybatis;
import com.lktx.sso.admin.entity.SsoOrganization;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * sso组织管理 Mapper 接口
 */
@Mybatis
public interface SsoOrganizationMapper extends BaseMapper<SsoOrganization> {

    /**
     * 查询当前ID及子ID
     * @param ssoOrganizationIds
     * @return
     */
    Set<Integer> getOrganizationIds(@Param("ssoOrganizationIds") List<Integer> ssoOrganizationIds );

    /**
     * 查询当前ID及子ID
     * @param id
     * @return
     */
    Set<Integer> getParentOrganizationIds(@Param("id") Integer id );

}
